package com.qo.qsdk.ui;

import android.os.Bundle;

import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;

import com.qo.qsdk.QSDK;
import com.qo.qsdk.http.QCommonResultListBean;
import com.qo.qsdk.http.QResultCallback;
import com.qo.qsdk.http.QSDKHttp;
import com.qo.qsdk.model.HisModel;
import com.qo.qsdk.ui.base.ExitView;
import com.qo.qsdk.ui.base.HisView;
import com.qo.qsdk.utils.QSDKHelper;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class ExitActivity  extends BaseActivity {

    private ExitView mExitView;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        mExitView = new ExitView(this, mQSDKListener);
    }


    @Override
    public void onBackPressed() {
        if (mQSDKListener != null) mQSDKListener.onExitCancel();
        super.onBackPressed();
    }

    QSDKListener mQSDKListener = new QSDKListener(){

        @Override
        public void onExitSuccess() {
            QSDK.getInstance().onResultExitSuccess(ExitActivity.this);
        }

        @Override
        public void onExitCancel() {
            QSDK.getInstance().onResultExitClose(ExitActivity.this);
        }
    };

}
